/**
 * 
 */
package com.workable.assignment.domain.themoviedb;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.workable.assignment.domain.ApiMovie;
import com.workable.assignment.utilities.StringUtil;

/**
 * @author npapadopoulos
 * 
 */
public class TMDBMovie implements Serializable, ApiMovie {

    /**
	 * 
	 */
    private static final long serialVersionUID = -5072856597746193707L;

    private boolean adult;

    @JsonProperty(value = "backdrop_path")
    private String backdropPath;

    private long id;

    @JsonProperty(value = "original_title")
    private String originalTitle;

    @JsonProperty(value = "release_date")
    private String releaseDate;

    @JsonProperty(value = "poster_path")
    private String posterPath;
    private float popularity;
    private String title;

    @JsonProperty(value = "vote_average")
    private float voteAverage;

    @JsonProperty(value = "vote_count")
    private int voteCount;

    public boolean isAdult() {
        return adult;
    }

    public void setAdult(boolean adult) {
        this.adult = adult;
    }

    public String getBackdropPath() {
        return backdropPath;
    }

    public void setBackdropPath(String backdropPath) {
        this.backdropPath = backdropPath;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getOriginalTitle() {
        return originalTitle;
    }

    public void setOriginalTitle(String originalTitle) {
        this.originalTitle = originalTitle;
    }

    public String getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(String releaseDate) {
        this.releaseDate = releaseDate;
    }

    public String getPosterPath() {
        return posterPath;
    }

    public void setPosterPath(String posterPath) {
        this.posterPath = posterPath;
    }

    public float getPopularity() {
        return popularity;
    }

    public void setPopularity(float popularity) {
        this.popularity = popularity;
    }

    @Override
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public float getVoteAverage() {
        return voteAverage;
    }

    public void setVoteAverage(float voteAverage) {
        this.voteAverage = voteAverage;
    }

    public int getVoteCount() {
        return voteCount;
    }

    public void setVoteCount(int voteCount) {
        this.voteCount = voteCount;
    }

    @Override
    public String toString() {
        return StringUtil.toString(this);
    }
}
